package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 * 数据字典-客户行业
 *
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/26 10:19
 * @since v1.0
 */
@Getter
public enum CustomerIndustryEnum {

    // 客户行业
    FINANCIAL("1", "enum.customerIndustry.name.financial", "financial"),


    TELECOMMUNICATIONS("2", "enum.customerIndustry.name.telecommunications", "telecommunications"),


    EDUCATION("3", "enum.customerIndustry.name.education", "education"),


    HIGH_TECH("4", "enum.customerIndustry.name.high_tech", "highTech"),


    GOVERNMENT("5", "enum.customerIndustry.name.government", "government"),


    MANUFACTURING("6", "enum.customerIndustry.name.manufacturing", "manufacturing"),


    SERVICE_INDUSTRY("7", "enum.customerIndustry.name.service_industry", "serviceIndustry"),


    ENERGY("8", "enum.customerIndustry.name.energy", "energy"),


    RETAIL("9", "enum.customerIndustry.name.retail", "retail"),


    MEDIA("10", "enum.customerIndustry.name.media", "media"),


    ENTERTAINMENT("11", "enum.customerIndustry.name.entertainment", "entertainment"),


    ADVISORY("12", "enum.customerIndustry.name.advisory", "advisory"),


    NON_PROFIT_BUSINESS("13", "enum.customerIndustry.name.non_profit_business", "nonProfitBusiness"),


    UTILITIES("14", "enum.customerIndustry.name.utilities", "utilities"),


    OTHER("15", "enum.customerIndustry.name.other", "other"),
    ;

    private String code;
    private String name;
    private String attr;

    CustomerIndustryEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
